package com.objcat.playground.algorithm.algo.bit;

/**
 * @author objcat
 * @version 1.0
 * @description TestBit
 * @date 2022/10/3 14:50
 */
public class TestBit {
    static void print(int num) {
        for (int i = 31; i >= 0; i--) {
            System.out.print((num & (1 << i)) == 0 ? 0 : 1);
        }
    }

    public static void main(String[] args) {
//        print(3 << 1);
//        System.out.println(1 << 6);
//        System.out.println(Math.round(Math.pow(2, 6)));
        System.out.println(1 << 10);
        int num = 1;
        System.out.println(Integer.parseInt("10000000000", 2));

    }
}
